import request from '@/utils/request'
// -------- 推荐广告 --------

let BASE_ADDRESS = 'market/recommend'

//  分页查询
export function getRecommendListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  删除
export function getRecommendRemoveApi(id) {
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: "delete",

    })
}

//  修改
export function getRecommendEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

//  添加
export function getRecommendAddApi(data) {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}